3.3.41 \(\int \frac {x \log (c x^2)}{1-c x^2} \, dx\) [241]

Optimal. Leaf size=17 \[ \frac {\text {Li}_2\left (1-c x^2\right )}{2 c} \]

[Out]

1/2*polylog(2,-c*x^2+1)/c

________________________________________________________________________________________

Rubi [A]
time = 0.03, antiderivative size = 17, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {2374, 2352} \begin {gather*} \frac {\text {PolyLog}\left (2,1-c x^2\right )}{2 c} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(x*Log[c*x^2])/(1 - c*x^2),x]

[Out]

PolyLog[2, 1 - c*x^2]/(2*c)

Rule 2352

Int[Log[(c_.)*(x_)]/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[(-e^(-1))*PolyLog[2, 1 - c*x], x] /; FreeQ[{c, d, e
}, x] && EqQ[e + c*d, 0]

Rule 2374

Int[((a_.) + Log[(c_.)*(x_)^(n_)]*(b_.))^(p_.)*((f_.)*(x_))^(m_.)*((d_) + (e_.)*(x_)^(r_))^(q_.), x_Symbol] :>
 Dist[f^m/n, Subst[Int[(d + e*x)^q*(a + b*Log[c*x])^p, x], x, x^n], x] /; FreeQ[{a, b, c, d, e, f, m, n, q, r}
, x] && EqQ[m, r - 1] && IGtQ[p, 0] && (IntegerQ[m] || GtQ[f, 0]) && EqQ[r, n]

Rubi steps

\begin {align*} \int \frac {x \log \left (c x^2\right )}{1-c x^2} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {\log (c x)}{1-c x} \, dx,x,x^2\right )\\ &=\frac {\text {Li}_2\left (1-c x^2\right )}{2 c}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 17, normalized size = 1.00 \begin {gather*} \frac {\text {Li}_2\left (1-c x^2\right )}{2 c} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(x*Log[c*x^2])/(1 - c*x^2),x]

[Out]

PolyLog[2, 1 - c*x^2]/(2*c)

________________________________________________________________________________________

Maple [A]
time = 0.11, size = 12, normalized size = 0.71

method result size
derivativedivides \(\frac {\dilog \left (c \,x^{2}\right )}{2 c}\) \(12\)
default \(\frac {\dilog \left (c \,x^{2}\right )}{2 c}\) \(12\)
risch \(\frac {\dilog \left (c \,x^{2}\right )}{2 c}\) \(12\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*ln(c*x^2)/(-c*x^2+1),x,method=_RETURNVERBOSE)

[Out]

1/2/c*dilog(c*x^2)

________________________________________________________________________________________

Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 76 vs. \(2 (14) = 28\).
time = 0.26, size = 76, normalized size = 4.47 \begin {gather*} -\frac {\log \left (c x^{2} - 1\right ) \log \left (c x^{2}\right )}{2 \, c} + \frac {\log \left (c x^{2} - 1\right ) \log \left (x\right )}{c} + \frac {\log \left (c x^{2} - 1\right ) \log \left (c x^{2}\right ) - 2 \, \log \left (c x^{2} - 1\right ) \log \left (x\right ) + {\rm Li}_2\left (-c x^{2} + 1\right )}{2 \, c} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*log(c*x^2)/(-c*x^2+1),x, algorithm="maxima")

[Out]

-1/2*log(c*x^2 - 1)*log(c*x^2)/c + log(c*x^2 - 1)*log(x)/c + 1/2*(log(c*x^2 - 1)*log(c*x^2) - 2*log(c*x^2 - 1)
*log(x) + dilog(-c*x^2 + 1))/c

________________________________________________________________________________________

Fricas [A]
time = 0.34, size = 14, normalized size = 0.82 \begin {gather*} \frac {{\rm Li}_2\left (-c x^{2} + 1\right )}{2 \, c} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*log(c*x^2)/(-c*x^2+1),x, algorithm="fricas")

[Out]

1/2*dilog(-c*x^2 + 1)/c

________________________________________________________________________________________

Sympy [C] Result contains complex when optimal does not.
time = 4.64, size = 94, normalized size = 5.53 \begin {gather*} \frac {\begin {cases} - \frac {\operatorname {Li}_{2}\left (c x^{2}\right )}{2} & \text {for}\: \frac {1}{\left |{x}\right |} < 1 \wedge \left |{x}\right | < 1 \\i \pi \log {\left (x \right )} - \frac {\operatorname {Li}_{2}\left (c x^{2}\right )}{2} & \text {for}\: \left |{x}\right | < 1 \\- i \pi \log {\left (\frac {1}{x} \right )} - \frac {\operatorname {Li}_{2}\left (c x^{2}\right )}{2} & \text {for}\: \frac {1}{\left |{x}\right |} < 1 \\- i \pi {G_{2, 2}^{2, 0}\left (\begin {matrix} & 1, 1 \\0, 0 & \end {matrix} \middle | {x} \right )} + i \pi {G_{2, 2}^{0, 2}\left (\begin {matrix} 1, 1 & \\ & 0, 0 \end {matrix} \middle | {x} \right )} - \frac {\operatorname {Li}_{2}\left (c x^{2}\right )}{2} & \text {otherwise} \end {cases}}{c} - \frac {\log {\left (c x^{2} \right )} \log {\left (c x^{2} - 1 \right )}}{2 c} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*ln(c*x**2)/(-c*x**2+1),x)

[Out]

Piecewise((-polylog(2, c*x**2)/2, (Abs(x) < 1) & (1/Abs(x) < 1)), (I*pi*log(x) - polylog(2, c*x**2)/2, Abs(x)
< 1), (-I*pi*log(1/x) - polylog(2, c*x**2)/2, 1/Abs(x) < 1), (-I*pi*meijerg(((), (1, 1)), ((0, 0), ()), x) + I
*pi*meijerg(((1, 1), ()), ((), (0, 0)), x) - polylog(2, c*x**2)/2, True))/c - log(c*x**2)*log(c*x**2 - 1)/(2*c
)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*log(c*x^2)/(-c*x^2+1),x, algorithm="giac")

[Out]

integrate(-x*log(c*x^2)/(c*x^2 - 1), x)

________________________________________________________________________________________

Mupad [B]
time = 3.38, size = 11, normalized size = 0.65 \begin {gather*} \frac {{\mathrm {Li}}_{\mathrm {2}}\left (c\,x^2\right )}{2\,c} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-(x*log(c*x^2))/(c*x^2 - 1),x)

[Out]

dilog(c*x^2)/(2*c)

________________________________________________________________________________________